Window indexes
Window indexes are used by many window-related functions within the FL Studio API to refer to FL Studio's primary windows.
These constants all begin with the wid
prefix.
import ui
import midi
if ui.getFocused(midi.widMixer):
print("Mixer window is open")
else:
ui.setFocused(midi.channelRack)
print("Opened the channel rack window")
widPluginEffect
module-attribute
Effect plugin window. This index is returned by ui.getFocused()
if any effect plugin is focused.
Note that this cannot be used for activating windows. To activate an effect
plugin window, use mixer.focusEditor()
.
widPluginGenerator
module-attribute
Generator (instrument) plugin window. This index is returned by
ui.getFocused()
if any generator plugin is focused.
Note that this cannot be used for activating windows. To activate a generator
plugin window, use channels.focusEditor()
.